<template>
  <div class="box">
    <my-toubu></my-toubu>
    <van-form @submit="onSubmit">
  <van-field
    v-model="username"
    name="用户名"
    label="用户名"
    placeholder="用户名"
  />
  <van-field
    v-model="password"
    type="password"
    name="密码"
    label="密码"
    placeholder="密码"
  />
  <div style="margin: 16px;">
    <van-button round  @click="usid(username)" color="linear-gradient(to right, #ff6034, #ee0a24)"  block type="info" native-type="submit">提交</van-button>
  </div>
    </van-form>
  <div class="kefu">© 猫眼电影 客服电话：<span>400-670-5335</span> </div>
  </div>
</template>
<script>
import myToubu from"../components/headRuten.vue";
export default {
  components:{
    myToubu,
  },
   data() {
    return {
      username: '',
      password: '',
    };
  },
   methods: {
   
    usid(a){
      localStorage.setItem('token', a);
      this.$router.push("woDe")
    }
  },
  
}
</script>
<style lang="less" scoped>
.kefu{
  text-align: center;
  font-size: 15px;
  >span{
    color: red;
  }
}
</style>